public class Zuo05{
	public static void main (String[]args){
		
		int[]arr1 ={10,20,30,40};
		int sum = 0;
		for (int i =0;i <arr1.length;i++){
			sum += (arr1[i]);
		}
		System.out.println(sum);
		//double[] arr = {1,2,3,4,5,6,7,8,9,10};
		//System.out.println(arr[9]);
		/*double[] arr1 = {1,2,3,4,5};
		arr1[4] = 5.5;
		System.out.println(arr1[0] + arr1[1]);*/
		
	}
}